package com.neusoft.sm;

import java.util.List;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.neusoft.sm.po.Emp;
import com.neusoft.sm.service.EmpService;

public class TestSM {

	@Test
	public void test() {
		@SuppressWarnings("resource")
		ApplicationContext context = new ClassPathXmlApplicationContext("spring.xml");
		
		EmpService empService = context.getBean("empService",EmpService.class);
		
		List<Emp> listEmp = empService.getListEmp();
		
		System.out.println(listEmp);
		
//		empService.tranfer();
		
		
	}
	
	
}
